#pragma once

template <typename T>
class CSingleton
{

public:
	static T* GetInst()
	{
		static T* tInst;

		if(nullptr == tInst)
			tInst = new T();

		return tInst;
	}

	static void DeleteInst(T* pInst)
	{
		if(nullptr == pInst)
			return;

		delete pInst;
	}

};

